a, b, c = map(int, input().split())
Max = max(a, b, c)
Min = min(a, b, c)
i = 0
for i in range(int(Max ** 0.5), 1, -1):
    if Max % i == 0 and Min % i == 0:
        Max //= i
        Min //= i
        break
print(f"{Min}/{Max}")
